package polymorphism;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/7/3 19:48
 */
public class Cat extends Animal{
    private String color;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void eat() {
        super.eat();
        System.out.println("更喜欢猫粮");
    }

}
